
#include "ui_image/ui_image.h"
#ifdef __cplusplus
extern "C" {
#endif
LV_FONT_DECLARE(myFont_font18)                                            //中文字体
//窗体对象
static lv_obj_t * player_win = NULL;
static lv_obj_t * playerID = NULL;
static lv_obj_t * playerName = NULL;
static lv_obj_t * playerNum = NULL;
static lv_obj_t * userName = NULL;
static lv_obj_t * userNum = NULL;
//创建玩家界面
 void gui_msg_win_create(lv_obj_t * parent)
{
	player_win = parent;//用来模拟窗体

	if(player_win == NULL ) return;

	lv_obj_t * main_img = lv_img_create(player_win);
	lv_img_set_src(main_img,&blackButtom);//设置图片源
    lv_obj_set_size(main_img, 240, 240); // 设置对象大小
    lv_obj_center(main_img); // 对象居中显示

	//玩家头像
	lv_obj_t * player_img = lv_img_create(main_img);
	lv_img_set_src(player_img,&msgDouble);//设置图片源
    lv_obj_set_size(player_img, 120, 120); // 设置对象大小
    lv_obj_align(player_img, LV_ALIGN_CENTER,0, -24);



    playerName =lv_label_create(main_img);//创建label
    lv_label_set_recolor(playerName, true);
    lv_obj_align(playerName, LV_ALIGN_CENTER, 0, 52);
    lv_obj_set_size(playerName,80,20);//设定大小
    lv_label_set_text(playerName, "#61DCFE 成功与该宇#");           //字体颜色
    lv_obj_set_style_text_font(playerName, &myFont_font18, 0);

    playerNum =lv_label_create(main_img);//创建label
    lv_label_set_recolor(playerNum, true);
    lv_obj_align(playerNum, LV_ALIGN_CENTER, 12, 76);
    lv_obj_set_size(playerNum,120,20);//设定大小
    lv_label_set_text(playerNum, "#61DCFE 航员建立链接#");           //字体颜色
    lv_obj_set_style_text_font(playerNum, &myFont_font18, 0);

}


//删除主界面
 void gui_msg_win_dele(void)
 {
    if(player_win == NULL ) return;
    lv_obj_del(player_win);
    player_win =  NULL;
 }


 void gui_msg_win_run(void)
{


}

#ifdef __cplusplus
}
#endif
